package cn.lili.modules.order.fallback;

import cn.lili.common.exception.ServiceException;
import cn.lili.modules.order.order.client.OrderStatisticsClient;
import cn.lili.modules.order.order.entity.dto.OrderStatisticsSearchParams;
import cn.lili.modules.order.order.entity.vo.OrderSimpleVO;
import cn.lili.modules.statistics.entity.dto.OrderPromotionStatisticsQueryParam;
import cn.lili.modules.statistics.entity.dto.StatisticsQueryParam;
import cn.lili.modules.statistics.entity.vo.OrderStatisticsDataVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author paulG
 * @since 2022/6/28
 **/
public class OrderStatisticsFallback implements OrderStatisticsClient {

    @Override
    public long orderNum(String orderStatus, String storeId) {
        throw new ServiceException();
    }

    @Override
    public List<OrderStatisticsDataVO> statisticsChart(StatisticsQueryParam statisticsQueryParam) {
        throw new ServiceException();
    }

    @Override
    public Page<OrderSimpleVO> getStatistics(StatisticsQueryParam statisticsQueryParam) {
        throw new ServiceException();
    }

    @Override
    public Map<String, Object> getMap(OrderStatisticsSearchParams searchParams) {
        throw new ServiceException();
    }

    @Override
    public Page<OrderSimpleVO> getOrderPromotionStatistics(OrderPromotionStatisticsQueryParam statisticsQueryParam) {
        System.out.println("fallback");
        throw new ServiceException();
    }

    @Override
    public long orderNumByUrban(String orderStatus) {
        throw new ServiceException();
    }
}
